package com.hui.blog_server.service.impl;

import com.hui.blog_server.entity.Blogs;
import com.hui.blog_server.mapper.BlogsMapper;
import com.hui.blog_server.service.BlogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogsServiceImpl implements BlogsService {

    @Autowired
    public BlogsMapper blogsMapper;

    @Override
    public List<Blogs> getAllBlogs() {
        return blogsMapper.selectList(null);
    }
}
